import http from '../utils/http'
import type {JoinType} from '@/model/job'
//岗位详情
export const getJobDetail = (id:string)=>{
	return http.get(`/classes/job/${id}`)
}

// 报名
export const joinPost = (data:JoinType)=>{
	return http.post(`/classes/join`,data)
}

//查看报名状态
export const joinCheck = (userId:string,jobId:string)=>{
	return http.get(`/classes/join`,{
		params:{
			where:{userId,jobId}
		}
	})
}